#include <iostream>
#include "RBTree.h"
#include <time.h>

using namespace std;

//int main()
//{
//	dzp:: RBTree<int, int> a;
//	//int arr[] = { 16, 3, 7, 11, 9, 26, 18, 14, 15 };
//	int arr[] = { 4, 2, 6, 1, 3, 5, 15, 7, 16, 14 };
//	for (auto e : arr)
//	{
//		a.insert(e);
//	}
//	a.InOrder();
//	cout<<a.IsValidRBTree();
//}

int main()
{
	srand(time(0));
	dzp::RBTree<int, int > a;
	for (int i = 0; i < 10000; i++)
	{
		a.insert(dzp::make_pair(i,rand()));
	}
	 a.InOrder() ;
	cout << a.IsValidRBTree() << endl;;
	return 0;
}